package com.xddcodec.fs.framework.preview.strategy.impl;

import com.xddcodec.fs.framework.common.enums.FileTypeEnum;
import com.xddcodec.fs.framework.preview.core.PreviewContext;
import com.xddcodec.fs.framework.preview.strategy.AbstractPreviewStrategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.ui.Model;

/**
 * 音频预览策略
 */
@Slf4j
@Component
public class ExcelPreviewStrategy extends AbstractPreviewStrategy {

    @Override
    public boolean support(FileTypeEnum fileType) {
        return fileType == FileTypeEnum.EXCEL;
    }

    @Override
    public String getTemplatePath() {
        return "preview/excel";
    }

    @Override
    protected void fillSpecificModel(PreviewContext context, Model model) {
    }

    @Override
    public int getPriority() {
        return 1;
    }
}

